package com.hongning.railway.entity.resbean;

import android.os.Parcel;
import android.os.Parcelable;

public class ResPhotoItem implements Parcelable {

    /**
     * ext1 : 0
     * ext2 : 4
     * id : 20190813112337134289
     * isHomePage : 1
     * photoAlbumsId : 20190812102828130628
     * photoContent : 阿斯顿发大水
     * photoLabel : http://47.108.73.33:8999/nbfp/templates/img/2019/8/12/20190812142005160904_about.jpg
     * photoTitle : 相册2
     */

    private String ext1;
    private String ext2;
    private String id;
    private String isHomePage;
    private String photoAlbumsId;
    private String photoContent;
    private String photoLabel;
    private String photoTitle;

    public String getExt1() {
        return ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1;
    }

    public String getExt2() {
        return ext2;
    }

    public void setExt2(String ext2) {
        this.ext2 = ext2;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIsHomePage() {
        return isHomePage;
    }

    public void setIsHomePage(String isHomePage) {
        this.isHomePage = isHomePage;
    }

    public String getPhotoAlbumsId() {
        return photoAlbumsId;
    }

    public void setPhotoAlbumsId(String photoAlbumsId) {
        this.photoAlbumsId = photoAlbumsId;
    }

    public String getPhotoContent() {
        return photoContent;
    }

    public void setPhotoContent(String photoContent) {
        this.photoContent = photoContent;
    }

    public String getPhotoLabel() {
        return photoLabel;
    }

    public void setPhotoLabel(String photoLabel) {
        this.photoLabel = photoLabel;
    }

    public String getPhotoTitle() {
        return photoTitle;
    }

    public void setPhotoTitle(String photoTitle) {
        this.photoTitle = photoTitle;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.ext1);
        dest.writeString(this.ext2);
        dest.writeString(this.id);
        dest.writeString(this.isHomePage);
        dest.writeString(this.photoAlbumsId);
        dest.writeString(this.photoContent);
        dest.writeString(this.photoLabel);
        dest.writeString(this.photoTitle);
    }

    public ResPhotoItem() {
    }

    protected ResPhotoItem(Parcel in) {
        this.ext1 = in.readString();
        this.ext2 = in.readString();
        this.id = in.readString();
        this.isHomePage = in.readString();
        this.photoAlbumsId = in.readString();
        this.photoContent = in.readString();
        this.photoLabel = in.readString();
        this.photoTitle = in.readString();
    }

    public static final Parcelable.Creator<ResPhotoItem> CREATOR = new Parcelable.Creator<ResPhotoItem>() {
        @Override
        public ResPhotoItem createFromParcel(Parcel source) {
            return new ResPhotoItem(source);
        }

        @Override
        public ResPhotoItem[] newArray(int size) {
            return new ResPhotoItem[size];
        }
    };
}
